<template>
  <tr>
    <td>
      <input type="checkbox" v-model="item.checked" />
    </td>
    <td>{{ item.name }}</td>
    <td>{{ item.price }}</td>
    <td>
      <button @click="item.num--" :disabled="item.num <= 1">-</button>
      {{ item.num }}
      <button @click="item.num++">+</button>
    </td>
    <td>{{ item.price * item.num }}</td>
    <td><button @click="$emit('del', item)">删除</button></td>
  </tr>
</template>

<script>
export default {
  name: 'Gwc2',
  components: {},
  props: ['item'],
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>

<style lang="less" scoped></style>
